<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2018/9/21
 * Time: 20:34
 */
function __autoload($c_name)
{
    require_once  $c_name.".php";
}
//include "book.php";
//include "phone.php";

$BOOK=new book();
$BOOK->name="汤姆克兰西自传";
$BOOK->money=15646;
$BOOK->sum=456;
$BOOK->author="汤姆克兰西";
$BOOK->Press="衡阳哈德斯出版社";
$BOOK->B();
$PHONE=new phone();
$PHONE->name="小米mix2200";
$PHONE->money=15646;
$PHONE->sum=3;
$PHONE->brand="小米";
$PHONE->PlaceOfOrigin="衡阳";
$PHONE->B();